package com.app.model;

import com.baomidou.mybatisplus.annotation.*;

import java.io.File;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 房屋续租记录
 * </p>
 *
 * @author yoominic
 * @since 2025-03-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_fw_renewal_record")
public class FwRenewalRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 自增主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 唯一标识
     */
    private String idValue;


    /**
     * 租赁合同编号
     */
    private String contractNumber;

    /**
     * 用户ID
     */
    private Integer userId;

    /**
     * 承租人关系记录ID
     */
    private Integer tenantRelationshipId;

    /**
     * 续费开始时段
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date paymentStart;

    /**
     * 续费到期时段
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date paymentEnd;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 审核时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime reviewTime;

    /**
     * 合同签订时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime contractSignTime;

    /**
     * 合同地址
     */
    private String contractAddress;

    @TableField(exist = false)
    private List<File> contractPicture;

    /**
     * 状态 1待审核、2生效中、3已终止、4争议处理中
     */
    private Integer status;

    /**
     * 审核人ID
     */
    private Integer auditorSysUserId;

    /**
     * 拒绝原因
     */
    private String remarks;

    @TableField(exist = false)
    private String leaseCertificateNumberNew;

    @TableField(exist = false)
    private String areaName;

    @TableField(exist = false)
    private String streetName;

    @TableField(exist = false)
    private String buildingNumber;

    @TableField(exist = false)
    private String unitNumber;

    @TableField(exist = false)
    private String floorLevel;

    @TableField(exist = false)
    private String roomNumber;

    @TableField(exist = false)
    private String mphValue;

    @TableField(exist = false)
    private String currentTenantName;

    @TableField(exist = false)
    private String currentTenantIdCardLastFour;

    @TableField(exist = false)
    private Double unitPricePerSquare;

    @TableField(exist = false)
    private Double calculatedPrice;

    @TableField(exist = false)
    private Double totalPrice;

    @TableField(exist = false)
    private Double buildingArea;

    @TableField(exist = false)
    private Double usableArea;

    @TableField(exist = false)
    private String houseType;

    @TableField(exist = false)
    private Integer timePercentage;

    @TableField(exist = false)
    private Integer remainingDays;

    @TableField(exist = false)
    private String houseAreaType;

    @TableField(exist = false)
    private Integer isArrearage;

    @TableField(exist = false)
    private List<Map<String, Object>> currentNodeList;








}
